package de.java.hsrm.view.bars;

import java.awt.event.ActionEvent;

import javax.swing.*;

public class Toolbar {
	
	private JToolBar toolbar;
	private Action openFile;
	private Action saveFile;
	
	public Toolbar(){
		initialize();
		build();
	}

	private void initialize() {
		this.toolbar = new JToolBar();
		
		initActionToolButtons();
		
	}

	private void build() {
		this.toolbar.add(this.openFile);
		this.toolbar.add(this.saveFile);
		
	}
	
	@SuppressWarnings("serial")
	private void initActionToolButtons() {
		this.openFile = new AbstractAction(){
			@Override public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				
			}
			
		};
		
	}

}
